<?php

class Categories extends CI_Model{
    function __construct(){
        parent::__construct();
    }
    
    function getAll(){
        $this->db->order_by("category_title", "asc");
        return $this->db->get('categories');
    }
    
    function insert($title){
        $this->db->set("category_title",$title);
        $this->db->insert('categories');
    }
}

